package com.example.mygame.snake.role;

/**
 * Created by Mrper on 15-11-24.
 */
public class MapBlock implements Cloneable{

    public int x,y;

    public MapBlock(){}

    public MapBlock(int x,int y){
        this.x = x;
        this.y = y;
    }

    public void setXY(int x,int y){
        this.x = x;
        this.y = y;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        MapBlock mb = null;
        try{
            mb = (MapBlock)super.clone();
        }catch (Exception e){
            throw new CloneNotSupportedException();
        }
        return mb;
    }
}
